#include<stdio.h>

int scanf_arr(int arr[], int n);
int get_grade(int arr[], int n ,int arr2[]);
int print_arr(int arr[], int n);
int main(int argc, char *argv[])
{
	int score[20];
	int grade[11];

	scanf_arr(score, 20);
	get_grade(score, 20, grade);
	
	print_arr(grade, 11);

}

int scanf_arr(int arr[], int n){
	int i;
	for(i = 0; i < n; i++){
		scanf("%d", &arr[i]);
	}
	return 0;
}

int get_grade(int arr[], int n, int arr2[]){
	int i;
	for(i  = 0; i < n; i++){
		arr2[arr[i]/10]++;
	}
	return 0;
}

int print_arr(int arr[], int n){
	int i;
	for(i = n - 1; i >= 0; i--){
		if(i!= 10)
			printf("%d-%d:", i*10, i*10+9);
		else
			printf("100:");
		for(int j = 0; j < arr[i]; j++){
			printf("* ");
		}
		printf("\n");
	}

	return 0;
}
